﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="subject.aspx.cs" Inherits="Manage_Cms_subject" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
    <title>无标题页</title>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" type="text/css" />
</head>
<body>
    <form id="form1" action="?" method="post">
        <%--act=<%=ActFlag %>--%>
        <div class="mycolumn">
            <div class="columntitle">
                选择模板&nbsp;<%--<%=ActName %>站点--%></div>
            <table width="900px">
                     <%
                    int i = 0;
                    foreach (KeRui.Model.CmsTemplateFileAttr modelCmsTemplateFileAttr in listCmsTemplateFileAttr)
                    { 
                        i++;
                        if (i == 1)
                        {
                             %>
                             <tr>
                             <%
                        }    
                     %>
                    <td>
                         <div style="border:1px #bfd3e6 solid; margin-top:15px; width:200px;">
                            <div style="text-align:center; background-color:#87b6df; font-size:12px; color:White;"><%=modelCmsTemplateFileAttr.Name%></div>
                            <div style=" width:197px; height:200px; margin-top:3px;" >
                                <img style="width:197px; height:200px;" src="<%=modelCmsTemplateFileAttr.PicPath %>" />
                            </div>
                        </div>
                        <div style="width:100%; margin-bottom:15px; margin-top:6px;">
                        <input style="width:40px; cursor:pointer;" type="button" onclick="location.href='NewSubject.aspx?act=new&ID=<%=modelCmsTemplateFileAttr.ID %>&FileID=<%=modelCmsTemplateFileAttr.FileID %>&siteid=<%=siteid %>'" value="添加" />
                        <input style="width:40px; margin-left:15px; cursor:pointer;" type="button" value="预览" onclick="window.open().location.href='<%=modelCmsTemplateFileAttr.HtmlPath %>'" /></div>
                    </td>   
                    <%
                        if (i == 4)
                        {
                            %>
                            </tr>
                            <%
                            i = 0;
                        }
                    }
                    %>
            </table>
        </div>
    </form>
</body>
</html>

                        
                        